/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package library.FileFilters;

/**
 * This class is intended to find the files with a given pattern, in order to 
 * find the max index for a new Jpeg file
 * @author JNC
 */
public class IndexFileFilter extends JpegFileFilter {

    /**
     * Constructor.
     * Will match only well-formed filenames, taking into account the given pattern.
     * The sub-directories will not match.
     * @param myPattern
     * Indicates which pattern should be used
     */
    public IndexFileFilter(String myPattern) {
        super(false, true);
        // first arg indicates whether sub-directories should match
        // second arg indicated that well-formed filenames should be matched
        
        addPattern(myPattern);
    }

}
